#include("/include/pageForm.html",action="admin/fee/channel/search")

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="admin/fee/channel/search" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>渠道：</label>
				<select name="channelCode" class="required combox">
					<option value="">请选择渠道</option>
					#for(channel : channelList)
               			<option value="#(channel.code)" #(channel.code == channelCode ? 'selected' : '' )>#(channel.name)</option>
               		#end
				</select>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			#auth()
				<li><a class="add" href="admin/fee/channel/addPage" target="dialog"><span>添加</span></a></li>
			#end
			#auth()
				<li><a class="edit" href="admin/fee/channel/updatePage?id={channelFeeId}" target="dialog" warn="请选择一条渠道费率"><span>修改</span></a></li>
			#end
			#auth()
				<li><a class="delete" href="admin/fee/channel/delete?id={channelFeeId}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一条渠道费率"><span>删除</span></a></li>
			#end
		</ul>
	</div>

	<div id="w_list_print">
	<table class="list" style="width: 100%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="100">渠道编号</th>
				<th width="100">支付类别</th>
				<th width="100">费率名称</th>
			</tr>
		</thead>
		<tbody>
			#for(item : items)
				<tr target="channelFeeId" rel="#(item.id)">
					<td>
						#for(channel : channelList)
							#if(item.channelCode == channel.code)
	                           #(channel.code)#(channel.name)
	                        #end
                        #end
					</td>
					<td>
						#for(payType : payTypeList)
							#if(item.payTypeCode == payType.code)
	                           #(payType.name)
	                        #end
                        #end
					</td>
					<td>
						#for(feeModel : feeModelList)
							#if(item.feeId == feeModel.id)
	                           #(feeModel.name)
	                        #end
                        #end
					</td>
				</tr>
			#end
		</tbody>
	</table>
	</div>
	#include("/include/page.html")
</div>
